package com.jxdinfo.hussar.activitidemo.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class JSONResult {

	// 正确的返回
	public static final String OK = "ok";

	// 警告返回
	public static final String WARNING = "warning";

	// 授权错误或登录失败
	public static final String ERROR = "error";
	private String resultcode;

	@JsonInclude(Include.NON_NULL)
	private Object data;
	@JsonInclude(Include.NON_NULL)
	private Object resultdata;
	private String resultdesc;
	private String wisdomBean = "0";
	private int curPage;
	private int totalPages;
	private Long totalRows;

	public static String getOK() {
		return OK;
	}

	public static String getWARNING() {
		return WARNING;
	}

	public static String getERROR() {
		return ERROR;
	}

	public String getResultcode() {
		return resultcode;
	}

	public void setResultcode(String resultcode) {
		this.resultcode = resultcode;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getResultdata() {
		return resultdata;
	}

	public void setResultdata(Object resultdata) {
		this.resultdata = resultdata;
	}

	public String getResultdesc() {
		return resultdesc;
	}

	public void setResultdesc(String resultdesc) {
		this.resultdesc = resultdesc;
	}

	public String getWisdomBean() {
		return wisdomBean;
	}

	public void setWisdomBean(String wisdomBean) {
		this.wisdomBean = wisdomBean;
	}

	public int getCurPage() {
		return curPage;
	}

	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public Long getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(Long totalRows) {
		this.totalRows = totalRows;
	}
}

